package njust.edu.entity;

public class TradeItem {
    private Long id;//订单中单个菜的流水号
    private Long tradeId;//订单号
    private Integer quantity;//点菜份数
    private String dishId;//菜品ID
    private String dishName;//菜品名称
    private float dishPrice;//菜品单价

    public TradeItem(Long id, Long tradeId, Integer quantity, String dishId, String dishName, float dishPrice) {
        this.id = id;
        this.tradeId = tradeId;
        this.quantity = quantity;
        this.dishId = dishId;
        this.dishName = dishName;
        this.dishPrice = dishPrice;
    }

    @Override
    public String toString() {
        return "TradeItem{" +
                "id=" + id +
                ", tradeId=" + tradeId +
                ", quantity=" + quantity +
                ", dishId='" + dishId + '\'' +
                ", dishName='" + dishName + '\'' +
                ", dishPrice=" + dishPrice +
                '}';
    }

    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    public float getDishPrice() {
        return dishPrice;
    }

    public void setDishPrice(float dishPrice) {
        this.dishPrice = dishPrice;
    }

    public TradeItem() {
        super();
    }

    public TradeItem(Long id, Long tradeId, Integer quantity, String dishId) {
        this.id = id;
        this.tradeId = tradeId;
        this.quantity = quantity;
        this.dishId = dishId;
    }

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getTradeId() {
        return tradeId;
    }
    public void setTradeId(Long tradeId) {
        this.tradeId = tradeId;
    }
    public Integer getQuantity() {
        return quantity;
    }
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
    public String getDishId() {
        return dishId;
    }
    public void setDishId(String dishId) {
        this.dishId = dishId;
    }

}

